STEP 4: It doesn't look like a stripe yet! It needs to be longer and wider.

Comments are gray and have a # in front of them. They are for you to read, and are ignored by the program. The comment above the rectangle tells us what each parameter in the rectangle code controls: (x, y, width, height, "color").

  • Change the rectangle's width parameter from 100 to 700.

To navigate the page using the TAB key, first press ESC to exit the code editor.

stage.set_background_color("lightblue") # sprite = codesters.Rectangle(x, y, width, height, "color") sprite = codesters.Rectangle(0, 0, 100, 50, "gold")
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)